﻿@model KCMS.BusinessLogic.Models.ProductImage
@using KCMS.Helpers
<h2>ProductImage</h2>

    <div class="display-label">Product</div>
    <div class="display-field">
        @Model.Product.Article @Model.Product.Title @Model.Product.Brend.Title
    </div>
     <div class="display-label">Color</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Color)
    </div>
    <div class="display-label">ImageFile</div>
    <div class="display-field">
        @if (Model.ImageFile != null)
        {
            <img src="@Url.ContentImageUpload(@Model.ImageFile)" style="width:400px;"/>
        }
    </div>
    @Html.HiddenFor(model=>model.ImageFile)
   

    <div class="display-label">ColorImageFile</div>
     <div class="display-field">
        @if (Model.ColorImageFile != null)
        {
            <img src="@Url.ContentImageUpload(@Model.ColorImageFile)"/>
        }
    </div>
    @Html.HiddenFor(model=>model.ColorImageFile)
    <div class="display-label">DateOfCreate</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.DateOfCreate)
    </div>

    <div class="display-label">DateOfChange</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.DateOfChange)
    </div>

<p>
    @Html.ActionLink("Edit", "Edit", new { id = Model.Id }) |
    @Html.ActionLink("Back to List", "Index")
</p>
